***Replication File**
**Fajardo-Heyward, Kiyani, & Martinez Machain "Shifting Police Strategies: U.S. Aid and Repression by Public Safety Institutions in Latin America." ***


** Table 1 Descriptive Statistics

sum militarykill policekill

**Figure 3 Frequency Distribution of Police and Military Killings


hist policekill, percent
graph save graph1, replace

hist militarykill, percent
graph save graph2, replace

graph combine "graph1" "graph2", xcommon

graph export "combined_histogram.png", replace

** Table 2 Impact of Military Killings on Police Killings

ologit policekill militarykill, vce(robust)

***Table 3. Impact of US Aid on Substitution of Police Killings to Military Killings


eststo clear
eststo:ologit policekill L.c.diffmilkill##L.c.logUSaid  , vce(robust)
eststo:ologit policekill L.c.diffmilkill##L.c.logUSaid  L.polity2  Lcivilwar Llngdppc Llnpop , vce(robust)
esttab _all using Table5.rtf, replace se starlevels(* .10 ** .05 *** .01) label scalars(rho N ar2 ll_0 ll chi2) nogaps compress


** Figure 4 . Marginal effect of US Aid on Police Killings

logit policekill L.c.diffmilkill##L.c.logUSaid  L.polity2  Lcivilwar Llngdppc Llnpop , vce(robust)
margins, dydx(L.logUSaid ) at(L.diffmilkill =(-1 (1)2)) vsquish force
marginsplot, recast(line) recastci(rarea) yline(0)


****Appendix A
**Table A1. Impact of GDP, Population, Civil War, Oil Rent, and Level of Democracy on Police Killings

**GDP
eststo:ologit policekill WB_gdppc, vce(robust)

**population
eststo:ologit policekill WB_population, vce(robust)

**Oil rent
eststo:ologit policekill WB_oilrent , vce(robust)

**civil war
eststo: ologit policekill civilwar , vce(robust)

**polity2
eststo:ologit policekill polity2 , vce(robust)

**ethnic tension
***eststo:logit policekill ethntension , vce(robust)

**full model
eststo:ologit policekill WB_gdppc WB_population WB_oilrent civilwar polity2, vce(robust)
esttab _all using TableA1.csv, se starlevels(* .10 ** .05 *** .01) label scalars(rho N ll chi2) nogaps compress

***Table A2. Impact of Military Intervention, Military Spending, Civil Society Restriction, and Party Ban on Police Killings
**Mil Spending
eststo:ologit policekill WB_militaryspending , vce(robust)

**Mil intervention in Politics
eststo:ologit policekill milipolitic , vce(robust)

** civil Society Repression
eststo:ologit policekill vdem_CSOrepression , vce(robust)

**party ban
eststo:ologit policekill vdem_partyban , vce(robust)

*** Full model 

eststo:ologit policekill WB_militaryspending milipolitic vdem_CSOrepression vdem_partyban, vce(robust)
esttab _all using TableA2.rtf, se starlevels(* .10 ** .05 *** .01) label scalars(rho N ar2 ll_0 ll chi2) nogaps compress


***Figure A1. Marginal effect of US Aid on Police PIR Abuses

reg PolicePIR L.c.diffmilkill##L.c.logUSaid  L.polity2  Lcivilwar Llngdppc Llnpop , vce(robust)
margins, dydx(L.logUSaid ) at( L.diffmilkill =(-1 (1)2)) vsquish force
marginsplot, recast(line) recastci(rarea) yline(0)

**Figure A2: The Effect of US Military Training on Police Killings

eststo: logit policekill L.c.diffmilkill##c.ustraineesmilper  L.polity2  Lcivilwar Llngdppc Llnpop , vce(robust)
margins, dydx( ustraineesmilper ) at( L.diffmilkill =(-1 (1)2)) vsquish force
marginsplot, recast(line) recastci(rarea) yline(0)
esttab _all using Table1.csv, se starlevels(* .10 ** .05 *** .01) label scalars(rho N ar2 ll_0 ll chi2) nogaps compress

***Table A3. Change in US Aid Impact on Levels of Substitution (Ordinal Probit Model) 


eststo clear
eststo: oprobit sub1 logUSaid polity2 bd_best Llngdppc Llnpop , vce(robust)
esttab _all using TableA3.rtf, se starlevels(* .10 ** .05 *** .01) label scalars( N  ll chi2) nogaps compress